package com.ruoyi.flexiblescheduling.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.flexiblescheduling.mapper.OperInfoMapper;
import com.ruoyi.flexiblescheduling.domain.OperInfo;
import com.ruoyi.flexiblescheduling.service.IOperInfoService;

/**
 * 工艺信息Service业务层处理
 * 
 * @author Shijingming
 * @date 2024-01-27
 */
@Service
public class OperInfoServiceImpl implements IOperInfoService 
{
    @Autowired
    private OperInfoMapper operInfoMapper;

    /**
     * 查询工艺信息
     * 
     * @param ID 工艺信息主键
     * @return 工艺信息
     */
    @Override
    public OperInfo selectOperInfoByID(Long ID)
    {
        return operInfoMapper.selectOperInfoByID(ID);
    }

    /**
     * 查询工艺信息列表
     * 
     * @param operInfo 工艺信息
     * @return 工艺信息
     */
    @Override
    public List<OperInfo> selectOperInfoList(OperInfo operInfo)
    {
        return operInfoMapper.selectOperInfoList(operInfo);
    }

    /**
     * 新增工艺信息
     * 
     * @param operInfo 工艺信息
     * @return 结果
     */
    @Override
    public int insertOperInfo(OperInfo operInfo)
    {
        return operInfoMapper.insertOperInfo(operInfo);
    }

    /**
     * 修改工艺信息
     * 
     * @param operInfo 工艺信息
     * @return 结果
     */
    @Override
    public int updateOperInfo(OperInfo operInfo)
    {
        return operInfoMapper.updateOperInfo(operInfo);
    }

    /**
     * 批量删除工艺信息
     * 
     * @param IDs 需要删除的工艺信息主键
     * @return 结果
     */
    @Override
    public int deleteOperInfoByIDs(Long[] IDs)
    {
        return operInfoMapper.deleteOperInfoByIDs(IDs);
    }

    /**
     * 删除工艺信息信息
     * 
     * @param ID 工艺信息主键
     * @return 结果
     */
    @Override
    public int deleteOperInfoByID(Long ID)
    {
        return operInfoMapper.deleteOperInfoByID(ID);
    }
}
